package com.kqb.mapper;


import com.kqb.common.curd.IBaseMapper;
import com.kqb.pojo.CustomerInquiry;
import com.kqb.pojo.dto.CustomerInquiryDto;
import com.kqb.pojo.dto.InquiryQueryDto;
import com.kqb.pojo.vo.CustomerInquiryVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CustomerInquiryMapper extends IBaseMapper<CustomerInquiry> {
    String selectMaxCode();

    /**
     * 查询询价单
     * @param inquiryQueryDto
     * @return
     */
    public List<CustomerInquiryVo> select (InquiryQueryDto inquiryQueryDto);

    /**
     * 更新询价单的状态
     * 确定签约/拒绝签约等
     * @return
     */
    public int updateStatus(int id);

}